﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
     class Shangfannpc:FatherNPC
    {
        private string item;
        private string name;

        public string Item {
            get { return this.item; }
            set { this.item = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public override void speaking()
        {
            Console.WriteLine("NPC:{0}，这里有{1}你要吗",base.Name,this.item);

           
        }
        public Shangfannpc(string name, Styolenpc npcstyple,string item) :base(name,npcstyple){


            this.item = item;
        }
    }
}
